=========================================================================== BBS: The Abacus * HST/DS * Potterville, MI Date: 03-24-93 (13:35) Number: 83 From: EARL MONTGOMERY Refer#: 233 To: ALL Recvd: NO Subj: Interrupts Conf: (35) Quick Basi --------------------------------------------------------------------------- Part 3 of 3 parts LOCATE 3, 1: PRINT "This means AX is composed of two 8 bit "; PRINT "registers AL & AH"; LOCATE 4, 1: PRINT "Remember we put &H19 in AH and AL returned a"; PRINT " &h2. Therefore AX contains"; LOCATE 5, 1: PRINT "&H1902. And if you do a PRINT &H1902 you get "; PRINT "6402. I am printing all"; LOCATE 6, 1: PRINT "values in decimal. Anyway, let's print it now." LOCATE 8, 28: PRINT "Press any key to continue" loop6: I$ = INKEY$: IF I$ = "" THEN GOTO loop6 PRINT &H1902 PRINT "Your value may differ depending on your default drive." LOCATE 23, 28: PRINT "Press any key to continue." loop7: I$ = INKEY$: IF I$ = "" THEN GOTO loop7 CLS LOCATE 1, 1: PRINT "I hear someone saying "; LOCATE 2, 1: PRINT "Then why doesn't AX contain &h0219 instead "; PRINT " of &h1902?"; LOCATE 3, 1: PRINT "My reference books show the same thing and "; PRINT "that is confusing to me too."; LOCATE 4, 1: PRINT "But trust me for now AH is on the left and AL"; PRINT " is on the right. Maybe someone"; LOCATE 5, 1: PRINT "can shed some light on why the progrmming "; PRINT "books show examples with AL on the"; LOCATE 6, 1: PRINT "left and AH on the right." LOCATE 8, 1: PRINT "How would you like to see how the bit wise "; PRINT "AND operation with"; LOCATE 9, 1: PRINT "&Hff allows us to read the value in AL? Hey!"; PRINT " Where is everyone going!?"; LOCATE 10, 1: PRINT "Class hasn't been dismissed! Hey come back!"; PRINT " Well for those of you who"; LOCATE 11, 1: PRINT "stayed it is very very simple: The AND &Hff"; PRINT " (255) or binary 11111111 " LOCATE 12, 1: PRINT "sets all the bits in AH to 0. Therefore all "; PRINT "we have left is what is in AL." PRINT "Neat huh?" LOCATE 14, 1: PRINT "Class is now dismissed." locate 15,1:print"Your instructor was Earl Montgomery" LOCATE 23, 28: PRINT "Press any key to continue." loop8: I$ = INKEY$: IF I$ = "" THEN GOTO loop8 END rem final part of 3 parts --- Maximus 2.01wb * Origin: Rabbit and Snake's BBS - Richardson, Texas (1:124/6108) SEEN-BY: 1/211 11/2 4 13/13 101/1 108/89 109/25 110/69 114/5 123/19 124/1 SEEN-BY: 153/752 154/40 77 157/2 159/100 125 430 950 203/23 209/209 280/1 SEEN-BY: 390/1 396/1 15 397/2 2230/100 3603/20